<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>数网sup区服管理</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
<#include "../template/include/assign.ftl">
<#include "../template/include/source.ftl">
<#include "../template/template_listPage.ftl">
    <link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        .page {
            float: right;
            padding-top: 15px;
            margin-right: 15px;
        }
    </style>

    <script type="text/javascript">

        $('#searchButton').click(
                function () {
                    $('#currentPage_listForm').val('1');
                }
        );

        <#if actionErrors?? && (actionErrors?size > 0)>
        $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
            modal:true, autoCloseTime:3000});
        </#if>
    </script>
</head>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>数网sup区服管理&nbsp;<span class="pageInfo"></span></h1>
    </div>
<@pageList page=(page!) id="listForm" action="${web_base}/game/maxshu!asList.htm" query="asQuery" isEmpty=true>
    <div class="operateBar">

        <label>查找：</label>
        产品编号：<input type="text" name="asQuery.productId"
                    value="<#if asQuery??>${(asQuery.productId)!}</#if>"/>
        区域名称：<input type="text" name="asQuery.areaName"
                    value="<#if asQuery??>${(asQuery.areaName)!}</#if>"/>
        服务器名称：<input type="text" name="asQuery.serverName"
                    value="<#if asQuery??>${(asQuery.serverName)!}</#if>"/>
        <input type="submit" class="searchButton" value=""/>
    </div>
    <table class="listTable">
        <tr>
            <th>
                <span class="sort" name="productId">产品编号</span>
            </th>
            <th>
                <span class="sort" name="productName">产品名称</span>
            </th>
            <th>
                <span class="sort" name="gameName">游戏名称</span>
            </th>
            <th>
                <span class="sort" name="gameNameValue">游戏</span>
            </th>
            <th>
                <span class="sort" name="areaName">区域名称</span>
            </th>
            <th>
                <span class="sort" name="areaValue">区域值</span>
            </th>
            <th>
                <span class="sort" name="serverName">服务器名称</span>
            </th>
            <th>
                <span class="sort" name="serverValue">服务器值</span>
            </th>
        </tr>

        <#if page?? && page.list?? && (page.list?size gt 0)>
            <#list page.list as obj>
                <tr>
                    <td>
                    ${(obj.productId)!}
                    </td>

                    <td>
                        <#if obj.productName?? && obj.productName?length gt 50>
                        <#--//截取输出文字的长度-->
                        ${obj.productName?substring(0,50)}...
                        <#else>
                        ${(obj.productName)!}
                        </#if>
                    </td>
                    <td>
                    ${(obj.gameName)!}
                    </td>
                    <td>
                    ${(obj.gameNameValue)!}
                    </td>
                    <td>
                        <#if obj.areaName?? && obj.areaName?length gt 50>
                        <#--//截取输出文字的长度-->
                        ${obj.areaName?substring(0,50)}...
                        <#else>
                        ${(obj.areaName)!}
                        </#if>
                    </td>
                    <td>
                    ${(obj.areaValue)!}
                    </td>
                    <td>
                        <#if obj.serverName?? && obj.serverName?length gt 50>
                        <#--//截取输出文字的长度-->
                        ${obj.serverName?substring(0,50)}...
                        <#else>
                        ${(obj.serverName)!}
                        </#if>
                    </td>
                    <td>
                    ${(obj.serverValue)!}
                    </td>
                </tr>
            </#list>
        </#if>
    </table>

    <#if page?? && page.list?? && (page.list?size <= 0)>
        <div class="noRecord">
            没有找到任何记录!
        </div>
    </#if>
</@pageList>
</div>

</body>
</html>